using IQIGame.Onigao.Framework;

namespace IQIGame.Onigao.Logic
{
    public class BattleSkillExecuteState : BattleBaseSkillState
    {
        public BattleSkillExecuteState(BattlePlayController playController) : base(playController)
        {
        }

        public override EBattleSkillState stateId => EBattleSkillState.SkillExecute;
        public override void OnInit()
        {
        }

        public override void OnEnter(EBattleSkillState prevStateId)
        {
            // LogGame.Log($"{this.m_PlayCtrl.queueCtrl.current.unit.GUID}开始执行技能{this.m_PlayCtrl.queueCtrl.current.curSkill?.skillID}");
            this.m_PlayCtrl.ExecuteCurSkill();
        }

        public override void OnExit()
        {
        }

        public override void Dispose()
        {
        }
    }
}